package com.wanyang.service;

import com.wanyang.dto.PageDTO;
import com.wanyang.dto.PrincipalCommentDTO;
import com.wanyang.dto.SubCommentDTO;
import com.wanyang.vo.PostCommentVO;
import com.wanyang.vo.PrincipalCommentVO;
import com.wanyang.vo.SubCommentVO;

import java.util.List;

public interface PostCommentService {
    List<PostCommentVO> queryDefaultComment(Integer postId);

    List<PrincipalCommentVO> queryPrincipalCommentPage(Integer postId, PageDTO pageDTO);

    List<SubCommentVO> querySubCommentPage(Integer postCommentId, PageDTO pageDTO);

    List<SubCommentVO> querySubCommentPageByGroup(List<Integer> postCommentIds, Integer limit);

    Integer writePrincipalComment(PrincipalCommentDTO principalCommentDTO);

    Integer writeSubComment(SubCommentDTO subCommentDTO);

    void deleteComment(Integer postCommentId);

}
